flowbox: Avoid an assertion in snapshot()
authorMatthias Clasen <mclasen@redhat.com>
Thu, 14 May 2020 00:33:25 +0000 (20:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 14 May 2020 01:47:11 +0000 (21:47 -0400)
commit69ab403d7855df915f6ffc8fafdee13e67a9ca3b
tree429c9360dd32ff154b75de8a59e755a2b0beb27c
parent33011ccdff4a0167de1d1fe415819736cf97875f
flowbox: Avoid an assertion in snapshot()

The api contract for size_allocate() vfuncs is
that they must allocate all the children that are
going to be snapshotted in snapshot(). The flowbox
size_allocate() was just bailing out when the children
request a size of 0x0, leading to an assertion in
snapshot() vfunc later. Just allocate all children
a size of 0x0 in this case.
gtk/gtkflowbox.c